<template>
	<div class="home-goTop" v-on:click="goTop">
      <img src="../assets/top.png">
    </div>
</template>
<style type="text/css">
	  /*返回顶部按钮*/
.home-goTop{
  position: fixed;
  right: .8rem;
  bottom: 100px;
  z-index: 10;
}
.home-goTop img{
  width: 40px;
  /*display: none;*/
}
</style>
<script type="text/javascript">
  export default{
  	data(){
  		return {
  			timer:null,
  		}
  	},
    methods:{
      goTop:function(){
          var scrollTop=$(".content").scrollTop();
          $(".content").animate({scrollTop:0},function(){
          	console.log(0);
          });
      }
    }
  }
</script>